package com.tornado.system.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.tornado.system.mapper.GoodsMapper;
import com.tornado.system.model.Goods;
@Service
public class GoodsService implements IGoodsService {
	@Autowired
	private GoodsMapper goodsMapper;

	public List<Goods> list() {
		
		return goodsMapper.list();
	}

	public Goods load(int id) {
		return goodsMapper.selectByPrimaryKey(id);
	}



}
